
README

Replication code and data for Michael A. Clemens and Erwin R. Tiongson
"Split Decisions: Household finance when a policy discontinuity allocates overseas work"
Review of Economics and Statistics 
MS17753
October 17, 2016


LIST OF REPLICATION FILES

The replication files for Stata version 14.1 are:

1. "clemens tiongson restat - main tables and figures.do" --- produces the main results of the paper
2. "clemens_tiongson_survey_sample.dta" --- data file for the survey sample
3. "clemens_tiongson_sampling_universe.dta" --- data file for the sampling universe
4. "clemens_tiongson_national.dta" --- data file for comparing survey sample to nationally-representative data
5. "clemens_tiongson_interview_results.dta" --- data file with the outcome of survey attempts
6. "DCdensity.ado" --- produces the McCrary test graph
7. "for Appendix Table 5 - michael anderson code for sharpened FDR adjusted q-values.do" --- produces the multiple-comparison tests
8. "output_files.zip" --- the files generated by running the code provided

Note: The replication data for the maps of household locations (Figure 4 and Appendix Figure 1) have been omitted, because these contain information that would be sufficiently precise to individually identify the households. Survey respondents were promised anonymity.


INSTRUCTIONS

In order to execute the file "clemens tiongson restat - main tables and figures.do", you must follow these steps

1. Place all contents of the replication package in your working directory, and create a folder within that directory called "output".

2. At the top of the file "clemens tiongson restat - main tables and figures.do", where indicated, enter the filepath to your working directory.

3. If you are using an Apple Macintosh, you must replace the backslash ("\") with a forward slash ("/") in all file path names in the .do file.

4. If you have not already done so, install the user-written .ado files -psmatch2-, -rd-, and -b1x2-. This can be done by entering the following into the Stata command line:

	ssc install psmatch2
	ssc install rd
	ssc install b1x2

5. Exection requires an update of -esttab- and -estout- more recent than the one that comes packaged with Stata version 14.1. To obtain the updated version, enter the following into the Stata command line:

	
net install http://www.stata-journal.com/software/sj14-2/st0085_2.pkg

6. Execution requires one .ado file, "DCdensity.ado" (which implements the McCrary test), that has been included in this package. It must be placed in your personal .ado directory. To locate that directory, enter -sysdir- into the Stata command line. More information here: http://eml.berkeley.edu//~jmccrary/DCdensity/
It is a modified version of the original "DCdensity.ado" by Brian Kovak, where the modifications are insubstantial changes in the look of the graph.


DATA DICTIONARY

Contains data from clemens_tiongson_survey_sample.dta
  obs:         4,629                          
 vars:            77                          17 Oct 2016 13:21
 size:     1,416,474                          
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
              storage   display    value
variable name   type    format     label      variable label
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
hh_id           double  %10.0g                ID code unique to each household
pass            float   %9.0g      pass2      1 if household applicant passed Korean Language Test on 1st attempt, 0 otherwise
hh_wage_income  float   %9.0g                 Household income from wages, pesos per month
months_of_exp   long    %8.0g                 Applicant's months of work experience at time of exam
applicant       byte    %8.0g                 1 if individual is the applicant to EPS Korea job, 0 otherwise
hhremittances   float   %9.0g                 Household income from remittances, pesos per month
hhincome        float   %9.0g                 Household income, pesos per month
respondent_fe~H float   %9.0g                 1 if the respondent to the household survey is female, 0 if male
hh_data         byte    %8.0g                 Flag for one individual observation per household
scorediff       float   %9.0g                 Applicant's Korean Language Test score minus 120
OFWcurrent      float   %9.0g                 1 if individual currently in any foreign country
KOREAcurrent    float   %9.0g                 1 if individual currently in Korea
OFWcurrentHH    float   %9.0g                 1 if anyone in household is now living in any foreign country
OFWeverHH       float   %9.0g                 1 if anyone in household has lived in any foreign country, now or previously
KOREAcurrentHH  float   %9.0g                 1 if anyone in household is now living in Korea
KOREAeverHH     float   %9.0g                 1 if anyone in household has lived in Korea, now or previously
income_bus_agr  float   %9.0g                 Income from agricultural activity, pesos per month
income_bus_no~r float   %9.0g                 Income from non-agricultural business, pesos per month
employed        float   %9.0g                 1 if applicant employed at time of exam, 0 otherwise
applicant_fem~e float   %9.0g                 1 if applicant female, 0 if male
applicant_mar~d float   %9.0g                 1 if applicant married at time of exam, 0 otherwise
applicant_col~e float   %9.0g                 1 if applicant college graduate, 0 otherwise
age_at_exam     float   %9.0g                 Age of applicant at time of exam
batch1          float   %9.0g                 1 if exam taken in September 2005
batch2          float   %9.0g                 1 if exam taken in November 2005
batch3          float   %9.0g                 1 if exam taken in June 2006
batch4          float   %9.0g                 1 if exam taken in October 2006
batch5          float   %9.0g                 1 if exam taken in May 2007
region1         float   %9.0g                 1 if National Capital Region
region2         float   %9.0g                 1 if Other Luzon
region3         float   %9.0g                 1 if Visayas
region4         float   %9.0g                 1 if Mindanao
depl            float   %9.0g                 1 if applicant deployed to Korea, 0 otherwise
hhincome_nore~t float   %9.0g                 Household income without remittances, pesos per month
credit_family   float   %9.0g                 1 if borrowed from family for business in previous 6 months
credit_nonfam~y float   %9.0g                 1 if borrowed from non-family for business in previous 6 months
credit_~_family float   %9.0g                 1 if borrowed from family for non-business purpose in previous 6 months
cre~s_nonfamily float   %9.0g                 1 if borrowed from non-family for non-business purpose in prev. 6 months
exp_food        float   %9.0g                 Expenditures on food, pesos per month
exp_quality     float   %9.0g                 Expenditures on quality of life, pesos per month
exp_schoolmed   float   %9.0g                 Expenditures on health and education, pesos per month
exp_durable     float   %9.0g                 Expenditures on durable goods, pesos per month
exp_tot         float   %9.0g                 Total expenditures, pesos per month
savings         float   %9.0g                 Savings, pesos per month
female          float   %9.0g                 1 if the individual is female, 0 if male
num_nonkore~ild float   %9.0g                 Number of child household members not in Korea
num_nonkorea_~t float   %9.0g                 Number of working-age household members not in Korea
num_nonkore~old float   %9.0g                 Number of elderly household members not in Korea
num_nonkorea_~m float   %9.0g                 Number of working-age female household members not in Korea
frac_child      float   %9.0g                 Fraction of household members < 18
frac_adult      float   %9.0g                 Fraction of household members 18 <= age < 65
frac_old        float   %9.0g                 Fraction of household members >= 65
frac_wa_fem     float   %9.0g                 Fraction of working-age household members female
any_wage_income float   %9.0g                 1 if any income from wages, 0 otherwise
dayswork        float   %9.0g                 Days worked in previous month
asinh_wage_in~e float   %9.0g                 Inverse hyperbolic since of wage income
nonapp_adult    float   %9.0g                 1 if individual is an adult but is not the EPS Korea applicant
korea_income    float   %9.0g                 Individual's income in Korea, pesos per month
transnational~c float   %9.0g                 Household income including income of OFW in Korea, pesos per month
working         float   %9.0g                 1 if currently employed
spouse_of_app~t float   %9.0g                 1 if individual is the spouse of the EPS Korea applicant
dmaker_child    float   %9.0g                 1 if principal decision-maker on decisions about childcare
dmaker_repairs  float   %9.0g                 1 if principal decision-maker on decisions about home repairs
dmaker_purcha~s float   %9.0g                 1 if principal decision-maker on decisions about major purchases
dmaker_entrepr  float   %9.0g                 1 if principal decision-maker on decisions about entrepreneurship
dmaker_weekend  float   %9.0g                 1 if principal decision-maker on decisions about weekend activities
health_facility float   %9.0g                 1 if child visited a health facility in the past month
sick_private    float   %9.0g                 1 if child visited a private health facility in the past month
privateschool   float   %9.0g                 1 if individual currently enrolled in private school
inschool        float   %9.0g                 1 if individual currently enrolled in school
readto          float   %9.0g                 1 if anyone in the household regularly reads to the child
num_awards      float   %9.0g                 Number of awards received in private school
years_educ_de~d float   %9.0g                 Desired years of education for child
child_applica~e float   %9.0g                 1 if individual is school-age child and EPS Korea applicant is parent
child_applicant float   %9.0g                 1 if individual is a child and EPS Korea applicant is parent
anyones_child~e float   %9.0g                 1 if individual is a school-age child (4 <= age < 18)
anyones_child   float   %9.0g                 1 if individual is a child (age <= 18)
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------



Contains data from clemens_tiongson_sampling_universe.dta
  obs:        23,448                          
 vars:            17                          17 Oct 2016 12:45
 size:     1,688,256                          
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
              storage   display    value
variable name   type    format     label      variable label
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
hh_id           double  %20.0g                ID code unique to each household
batch           float   %9.0g                 Batch number of exam taken
months_of_exp   long    %8.0g                 Applicant's months of work experience at time of exam
klt_total_score float   %9.0g                 Applicant's score on Korean Language Test
pass            float   %9.0g      pass2       if household applicant passed Korean Language Test on 1st attempt, 0 otherwise
employed        float   %9.0g                 1 if applicant employed at time of exam, 0 otherwise
applicant_fem~e float   %9.0g                 1 if applicant female, 0 if male
applicant_mar~d float   %9.0g                 1 if applicant married at time of exam, 0 otherwise
applicant_col~e float   %9.0g                 1 if applicant college graduate, 0 otherwise
age_at_exam     float   %9.0g                 Age of applicant at time of exam
batch1          float   %9.0g                 1 if exam taken in September 2005
batch2          float   %9.0g                 1 if exam taken in November 2005
batch3          float   %9.0g                 1 if exam taken in June 2006
batch4          float   %9.0g                 1 if exam taken in October 2006
batch5          float   %9.0g                 1 if exam taken in May 2007
depl            float   %9.0g                 1 if applicant deployed to Korea, 0 otherwise
scorediff       float   %9.0g                 Applicant's Korean Language Test score minus 120
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------



Contains data from clemens_tiongson_national.dta
  obs:       193,562                          
 vars:            57                          17 Oct 2016 12:37
 size:    29,421,424                          (_dta has notes)
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
              storage   display    value
variable name   type    format     label      variable label
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
kalasag         byte    %9.0g                 1 if observation from this study's survey sample, 0 if from FIES-LFS
hh_id           double  %10.0g                ID code unique to each household
linenum         byte    %9.0g                 Line number of person in each household's roster
rel_to_head     byte    %9.0g                 1 if individual is head of household, >1 otherwise
age             int     %9.0g                 Age at last birthday
education       byte    %9.0g                 Highest grade completed
hhincome        float   %9.0g                 Household income, pesos per month
hhsize          byte    %9.0g                 Number of household members
OFWcurrentHH    byte    %9.0g                 1 if a household member is currently an Overseas Filipino Worker, 0 otherwise
strongroof      byte    %9.0g                 1 if home has strong roofing material
strongwall      byte    %9.0g                 1 if home has strong wall material
own             byte    %9.0g                 1 if family owns their home
singlehouse     byte    %9.0g                 1 if family lives in a single house
region          byte    %9.0g                 Region code: 1=capital, 2=rest of luzon, 3=visayas, 4=mindanao
in_country      byte    %9.0g                 1 if individual is in the Philippines at time of survey
hh_data         byte    %8.0g                 Flag for one individual observation per household
exp_food        float   %9.0g                 Expenditures on food, pesos per month
exp_quality     float   %9.0g                 Expenditures on quality of life, pesos per month
exp_schoolmed   float   %9.0g                 Expenditures on health and education, pesos per month
exp_durable     float   %9.0g                 Expenditures on durable goods, pesos per month
savings         float   %9.0g                 Savings, pesos per month
anysavings      byte    %9.0g                 1 if savings>0, 0 otherwise
exp_tot         float   %9.0g                 Total expenditures, pesos per month
years_educ      byte    %9.0g                 Years of education
inschool        byte    %9.0g                 1 if currently enrolled in school, 0 otherwise
entrepreneur    byte    %9.0g                 1 if any income from entrepreneurial activity, 0 otherwise
income_bus_agr  float   %9.0g                 Income from agricultural activity, pesos per month
income_bus_no~r float   %9.0g                 Income from non-agricultural business, pesos per month
entrepren_agr   byte    %9.0g                 1 if any income from agricultural activity, 0 otherwise
entrepren_non~r byte    %9.0g                 1 if any income from non-agricultural business, 0 otherwise
female          byte    %9.0g                 1 if female, 0 if male
married         byte    %9.0g                 1 if married, 0 if unmarried
hhremittances   float   %9.0g                 Household income from remittances, pesos per month
ln_hhincome     float   %9.0g                 ln of household income
ln_hhremittan~s float   %9.0g                 ln of household income from remittances
ln_entr_inc     float   %9.0g                 ln of entrepreneurial income
ln_income_~_agr float   %9.0g                 ln of income from agricultural activity
ln_income_~nagr float   %9.0g                 ln of income from non-agricultural business
ln_exp_food     float   %9.0g                 ln of expenditures on food
ln_exp_quality  float   %9.0g                 ln of expenditures on quality of life
ln_exp_school~d float   %9.0g                 ln of expenditures on health and education
ln_exp_durable  float   %9.0g                 ln of expenditures on durable goods
ln_exp_tot      float   %9.0g                 ln of total household expenditures
ln_savings      float   %9.0g                 ln of household savings
wt              float   %9.0g                 weight
applicant       byte    %9.0g                 1 if individual is the applicant to EPS Korea job, 0 otherwise
hh_wage_income  float   %9.0g                 Household total wage income, pesos per month
OFWcurrent      byte    %9.0g                 1 if individual is currently an Overseas Filipino Worker
working         byte    %9.0g                 1 if currently employed, 0 otherwise
dayswork        float   %9.0g                 Days worked in previous month
pass            byte    %9.0g      pass2      1 if household applicant passed Korean Language Test on 1st attempt, 0 otherwise
KOREAeverHH     byte    %9.0g                 1 if anyone in household has lived in Korea, now or previously
region1         float   %9.0g                 1 if National Capital Region
region2         float   %9.0g                 1 if Other Luzon
region3         float   %9.0g                 1 if Visayas
region4         float   %9.0g                 1 if Mindanao
hhincome_nore~t float   %9.0g                 Household income without remittances, pesos per month
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------



Contains data from clemens_tiongson_interview_results.dta
  obs:         1,442                          
 vars:             3                          17 Oct 2016 12:37
 size:        23,072                          
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
              storage   display    value
variable name   type    format     label      variable label
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
hh_id           double  %10.0g                ID code unique to each household
scorediff       float   %9.0g                 Applicant's Korean Language Test score minus 120
completed       float   %9.0g                 1 if completed survey was collected from household, 0 otherwise
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


